<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<div class="m_calendar_wrap" style="display: none;">
	<div class="m_calendar_box" id="m_calendar_box1">
	   	<h1>出行日价格表</h1>
		<div class="m_calendar_m">
			<div class="m_calendar_btnwrap">
				<span class="global1_bg m_btn m_btn_prev" nowdate="${todayPrice.spDate}" isabled="false"></span>
			</div>
			<div class="m_calendar_btnwrap">
		    	<span class="m_month">${nowMonth}月</span>
				<span class="global1_bg m_btn m_btn_next" id="next_month_btn" nowdate="${todayPrice.spDate}" isabled="false"></span>
		    </div>
		</div>
	<!-- month-->
	<ul class="m_calendar_t clearfix">
		<li>星期日</li>
	    <li>星期一</li>
	    <li>星期二</li>
	    <li>星期三</li>
	    <li>星期四</li>
	    <li>星期五</li>
	    <li>星期六</li>
	</ul>
	<ul class="m_calendar_d clearfix">
		<c:forEach items="${resPriceList}" var="resPrice" end="41">
			<li <c:if test="${not empty resPrice.priceA}">onclick="COOL.popBookTicket('${ticket.id }','${resPrice.spDate }');"</c:if> >
				<div class="m_calendar_info <c:if test="${not empty resPrice.priceA}">m_monthbg m_calendar_hover</c:if><c:if test="${empty resPrice.priceA}">m_monthbg1</c:if>">
					<span class="m_day">${fn:substring(resPrice.spDate,8,10)}</span>
					<span class="m_fullmonth" style="display:none;"></span>
					<span class="m_balance"></span>
					<span class="m_price"><c:if test="${not empty resPrice.priceA}">¥${resPrice.priceA}</c:if></span>
			    </div>
			</li>
		</c:forEach>
		
	    
	</ul>
	<!-- month--end-->
	</div>
                           
    <div class="m_calendar_box" id="m_calendar_box2" style="display: none;">
     	<h1>出行日价格表</h1>
        <div class="m_calendar_m">
         	<div class="m_calendar_btnwrap">
         		<span class="global1_bg m_btn m_btn_prev m_btn_prev_gray" id="prev_month_btn"></span>
             </div>
             <div class="m_calendar_btnwrap">
                 <span class="m_month">${nextMonth}月</span>
                 <span class="global1_bg m_btn m_btn_next m_btn_next_gray"></span>
             </div>
         </div>
         <!-- month-->
         <ul class="m_calendar_t clearfix">
         	<li>星期日</li>
             <li>星期一</li>
             <li>星期二</li>
             <li>星期三</li>
             <li>星期四</li>
             <li>星期五</li>
             <li>星期六</li>
         </ul>
         <ul class="m_calendar_d clearfix">
         	<c:forEach items="${resPriceList}" var="resPrice" begin="42">
         		<li <c:if test="${not empty resPrice.priceA}">onclick="COOL.popBookTicket('${ticket.id }','${resPrice.spDate }');"</c:if> >
              	<div dateTime="${resPrice.spDate}" class="m_calendar_info <c:if test="${not empty resPrice.priceA}">m_monthbg m_calendar_hover</c:if><c:if test="${empty resPrice.priceA}">m_monthbg1</c:if>">
                  	<span class="m_day">${fn:substring(resPrice.spDate,8,10)}</span>
                      <span class="m_fullmonth" style="display:none;"></span>
                      <span class="m_balance"></span>
                      <span class="m_price"><c:if test="${not empty resPrice.priceA}">¥${resPrice.priceA}</c:if></span>
                  </div>
              </li>
         	</c:forEach>
         </ul>
       	<!-- month--end-->
     </div>
</div>
<script type="text/javascript">
	$(function(){
		
		$("#next_month_btn").click(function(){
			$("#m_calendar_box1").hide();
			$("#m_calendar_box2").show();
		});
		
		$("#prev_month_btn").click(function(){
			$("#m_calendar_box2").hide();
			$("#m_calendar_box1").show();
		});
	});	
</script>